Contents | Index | < Browse | Browse >

LETTERtmpnamULETTER Creates a unique filename.

Overview
#include <stdio.h>

r = tmpnam(name);

char *r;
char name[L_tmpnam];

Portability
ANSI

Description
Creates a filename, which will be unique for the system (no other file will have the same name), which can be used for temporary files. If "name" is not specified, the function will create a string buffer. Otherwise, "name" must be at least "L_tmpnam" long.

Returns
A pointer to the "name".

See also
tmpfile